Skip to content

correct a typo in a namespace loading #10354

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 17, 2018
Merged

Conversation

bruno-ds
Copy link
Contributor

the correct namespace is not Symfony\Component\HttpKernel\DependencyInjection\Extension but Symfony\Component\DependencyInjection\Extension\Extension.

The mistake is present on all versions of the doc I checked, so I propose the correction on the oldest LTS but ie the 4.2 also have the typo.

If using the typo, the code still works because Symfony\Component\HttpKernel\DependencyInjection\Extension extends Symfony\Component\DependencyInjection\Extension\Extension

the correct namespace is not `Symfony\Component\HttpKernel\DependencyInjection\Extension` but `Symfony\Component\DependencyInjection\Extension\Extension`.

The mistake is present on all versions of the doc I checked, so I propose the correction on the oldest LTS but ie the 4.2 also have the typo.


If using the typo, the code still works because `Symfony\Component\HttpKernel\DependencyInjection\Extension` extends `Symfony\Component\DependencyInjection\Extension\Extension`
@javiereguiluz
Copy link
Member

Nice fix and perfectly explained! @bruno-ds thanks for the detailed explanation ... and congrats on your first contribution to Symfony Docs!

@javiereguiluz javiereguiluz merged commit b3ca081 into symfony:2.8 Sep 17, 2018
javiereguiluz added a commit that referenced this pull request Sep 17, 2018
This PR was merged into the 2.8 branch.

Discussion
----------

correct a typo in a namespace loading

the correct namespace is not `Symfony\Component\HttpKernel\DependencyInjection\Extension` but `Symfony\Component\DependencyInjection\Extension\Extension`.

The mistake is present on all versions of the doc I checked, so I propose the correction on the oldest LTS but ie the 4.2 also have the typo.

If using the typo, the code still works because `Symfony\Component\HttpKernel\DependencyInjection\Extension` extends `Symfony\Component\DependencyInjection\Extension\Extension`

<!--

If your pull request fixes a BUG, use the oldest maintained branch that contains
the bug (see https://symfony.com/roadmap for the list of maintained branches).

If your pull request documents a NEW FEATURE, use the same Symfony branch where
the feature was introduced (and `master` for features of unreleased versions).

-->

Commits
-------

b3ca081 correct a typo in a namespace loading
@bruno-ds bruno-ds deleted the patch-2 branch September 17, 2018 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants